<?php
/**
 * @copyright meila.com
 * @author shaopu@
 * @name 修改送货地址
 * 
 * 
 */
include ('../../__global.php');

class edit_shipping extends ml_controller 
{
    public function init()
    {
        $this->set_access(self::ACCESS_SELF , self::NOACCESS_REDIRECT );
    }
    public function initParam()
    {}
    public function checkParam()
    {

    }
    public function main()
    {
        $this->set_page_id('receiving');
        
        $uid = $this->__visitor['uid'];
        $oExt = new ml_model_dbUserExtInfo();
        $rs = $oExt->getShippingByUid($uid);
        if(!$rs)
            $this->redirect(ML_PAGE_SYSTEM_BUSY);
        $row = $oExt->get_data();
        
        ml_tool_actionlog::add_other_action($this->__visitor['uid'] , ML_SINAACTCODE_VIEW_SET_SHIPPING);
        
        $row['shipping_name'] = Tool_string::esc_edit_html($row['shipping_name']);
        $row['shipping_address'] = Tool_string::esc_edit_html($row['shipping_address']);
        $this->set_scope_var('shipping_info' , $row);
        
        
        
        
        $data = array(
        );
        $this->page_output('user::edit_shipping' , $data);
    }
}
new edit_shipping();